"use strict";function countValue(e,t,a,s){if(s)var i=0,n=parseInt(s/e),o=setInterval(function(){e>i-1?a.html(i):(a.html(t),clearInterval(o)),i++},n);else a.html(t)}function init_statsCounter(e){$(".stat .stat__number").each(function(){var t=$(this),a=t.attr("data-value"),s=t.attr("data-result");countValue(a,s,t,e)})}function init_progressBar(e){$(".progress-container").each(function(){var t=$(this).find(".progress-value"),a=$(this).find(".progress").attr("data-level"),s=a;Modernizr.csstransitions?$(this).find(".progress-bar").css({width:a+"%"}):$(this).find(".progress-bar").animate({width:a+"%"},2500),countValue(a,s,t,e)})}function cart(){function e(){$(".cart__toggle").toggleClass("open-nav");var e=$(".cart__list"),t=$(".z-nav__list"),a=$(".z-nav__toggle");e.hasClass("open-nav")?(e.removeClass("open-nav close-nav"),e.addClass("close-nav")):(e.removeClass("open-nav close-nav"),e.addClass("open-nav"),t.hasClass("open-nav")&&(t.removeClass("open-nav close-nav"),t.addClass("close-nav"),a.removeClass("open-nav close-nav"),a.addClass("close-nav")))}"ontouchstart"in window?$(".cart__toggle").on("touchstart",function(){e()}):$(".cart__toggle").on("click",function(){e()})}function revDefault(){var e=$(".banner").revolution({delay:9e3,startwidth:1170,startheight:560,onHoverStop:"on",hideThumbs:0,hideTimerBar:"on",navigationType:"none",navigationArrows:"solo",soloArrowLeftHalign:"left",soloArrowLeftValign:"bottom",soloArrowLeftHOffset:0,soloArrowLeftVOffset:-80,soloArrowRightHalign:"right",soloArrowRightValign:"bottom",soloArrowRightHOffset:0,soloArrowRightVOffset:-80,hideSliderAtLimit:640});e.bind("revolution.slide.onchange",function(e,t){var a=$(".banner li").eq(t.slideIndex-1).attr("data-text");$(".slider-info").text(a)})}function revAlternative(){$(".banner").revolution({delay:9e3,startwidth:1170,startheight:560,onHoverStop:"on",hideThumbs:100,hideTimerBar:"on",navigationType:"none",navigationArrows:"solo",soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:0,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:0,soloArrowRightVOffset:0,hideSliderAtLimit:640})}function royalSlider(){$(".royalSlider").royalSlider({keyboardNavEnabled:!0,loop:!0,autoScaleSlider:!0,autoScaleSliderHeight:284,slidesSpacing:0,autoPlay:{enabled:!0,pauseOnHover:!0},controlNavigation:"thumbnails",thumbs:{autoCenter:!1,fitInViewport:!1},controlsInside:!1});$(".royalSlider").data("royalSlider")}function flexSlider(){$(".flexslider").flexslider({controlNav:!1,prevText:"",nextText:"",after:function(){$(".slider-info").text($(".flex-active-slide").attr("data-text"))}})}function staffSlider(){var e=$(".staff-slider").swiper({slidesPerView:1});$(".staff-slider-control .prev-arrow").on("click",function(t){t.preventDefault(),e.swipePrev()}),$(".staff-slider-control .next-arrow").on("click",function(t){t.preventDefault(),e.swipeNext()})}function minimalSlider(){var e=$(".minimal-slider").swiper({slidesPerView:1,loop:!0});$(".minimal-slider-control .prev-arrow").on("click",function(t){t.preventDefault(),e.swipePrev()}),$(".minimal-slider-control .next-arrow").on("click",function(t){t.preventDefault(),e.swipeNext()})}function dateSlider(){function e(){var e=a.eq(t.activeIndex).attr("data-date");s.text(e)}var t=$(".date-slider").swiper({slidesPerView:1,loop:!0,onSlideChangeStart:function(){e()}}),a=$(".date-slider .swiper-slide"),s=$(".date-slider-control .date-slide");e(),$(".date-slider-control .prev-arrow").on("click",function(e){e.preventDefault(),t.swipePrev()}),$(".date-slider-control .next-arrow").on("click",function(e){e.preventDefault(),t.swipeNext()})}function itemCarousel(){var e=$(".carousel-all").swiper({slidesPerView:7,speed:500,autoplay:2e3,autoplayDisableOnInteraction:!1,loop:!0}),t=$(".carousel-all .swiper-slide-active");t.css("margin-right","-1px");var a=$(window).width();switch(!0){case a>992:e.params.slidesPerView=7,e.resizeFix();break;case a>769&&992>=a:e.params.slidesPerView=4,e.resizeFix();break;case a>400&&769>=a:e.params.slidesPerView=3,e.resizeFix();break;case 400>=a:e.params.slidesPerView=2,e.resizeFix()}$(window).resize(function(){t.css("margin-right","-1px");var a=$(window).width();switch(!0){case a>992:e.params.slidesPerView=7,e.reInit();break;case a>769&&992>=a:e.params.slidesPerView=4,e.reInit();break;case a>400&&769>=a:e.params.slidesPerView=3,e.reInit();break;case 400>=a:e.params.slidesPerView=2,e.reInit()}})}function scrollSlider(){$(".testimonial-wrap").mCustomScrollbar({axis:"x",advanced:{autoExpandHorizontalScroll:!0},autoDraggerLength:!1})}function featureSlider(){$(".fearure-slider").swiper({slidesPerView:1,loop:!1,paginationClickable:!0,pagination:".feature-pagination"})}function sliderSides(){function e(){var e=r.eq(o.activeIndex-1).attr("data-src"),t=r.eq(o.activeIndex+o.params.slidesPerView).attr("data-src"),l=r.eq(o.activeIndex-1).attr("data-head"),c=r.eq(o.activeIndex+o.params.slidesPerView).attr("data-head");a.attr("src",e),s.attr("src",t),i.text(l),n.text(c)}function t(){var e=r.eq(o.previousIndex).attr("data-src"),t=r.eq(o.previousIndex+o.params.slidesPerView+1).attr("data-src"),l=r.eq(o.previousIndex).attr("data-head"),c=r.eq(o.previousIndex+o.params.slidesPerView+1).attr("data-head");a.attr("src",e),s.attr("src",t),i.text(l),n.text(c)}var a=$(".leftside-arrow .img-prev"),s=$(".rightside-arrow .img-next"),i=$(".leftside-arrow .arrow-heading"),n=$(".rightside-arrow .arrow-heading"),o=$(".carousel-sides").swiper({slidesPerView:4,loop:!0,speed:600}),r=$(".carousel-sides .swiper-slide");$(".leftside-arrow").on("click",function(t){t.preventDefault(),o.swipePrev(),e()}),$(".rightside-arrow").on("click",function(e){e.preventDefault(),o.swipeNext(),t()}),e();var l=$(window).width();switch(!0){case l>992:o.params.slidesPerView=4,o.resizeFix();break;case l>640&&992>=l:o.params.slidesPerView=3,o.resizeFix();break;case l>400&&640>=l:o.params.slidesPerView=2,o.resizeFix();break;case 400>=l:o.params.slidesPerView=1,o.resizeFix()}$(window).resize(function(){var e=$(window).width();switch(!0){case e>992:o.params.slidesPerView=4,o.reInit();break;case e>640&&992>=e:o.params.slidesPerView=3,o.reInit();break;case e>400&&640>=e:o.params.slidesPerView=2,o.reInit();break;case 400>=e:o.params.slidesPerView=1,o.reInit()}})}function sliderSidesAdvanced(){sliderSides();var e=$(".carousel-sides .swiper-slide"),t=$(".slider-information__item");e.mouseenter(function(){e.removeClass("carousel-slide-active"),$(this).addClass("carousel-slide-active");var a=$(this).attr("data-head").toLowerCase();t.hide(0),$("."+a).show(0)}).mouseleave(function(){e.removeClass("carousel-slide-active")})}function fadingSlider(){function e(){i=t.activeLoopIndex,t.swipeTo(i,0,function(){n=t.activeIndex+t.params.slidesPerView-1,s.eq(n).addClass("slide-disabled")})}var t=$(".fading-slider").swiper({slidesPerView:5,loop:!0,paginationClickable:!0,pagination:".fade-pagination",noSwiping:!0,onSlideChangeStart:function(e){s.removeClass("slide-disabled"),i=e.activeIndex,s.eq(i).addClass("slide-disabled"),n=t.activeIndex+t.params.slidesPerView-1,s.eq(n).addClass("slide-disabled")}});$(".fade-slider-control .prev-arrow").on("click",function(e){e.preventDefault(),t.swipePrev()}),$(".fade-slider-control .next-arrow").on("click",function(e){e.preventDefault(),t.swipeNext()});var a=$(window).width();switch(!0){case a>1350:t.params.slidesPerView=5,t.resizeFix();break;case a>1150&&1350>=a:t.params.slidesPerView=4,t.resizeFix();break;case a>760&&1150>=a:t.params.slidesPerView=3,t.resizeFix();break;case 760>=a:t.params.slidesPerView=1,t.params.noSwiping=!1,t.resizeFix()}$(window).resize(function(){$(window).width()>1150&$(window).width()<1350?(t.params.slidesPerView=4,t.reInit(),e()):$(window).width()>760&$(window).width()<1150?(t.params.slidesPerView=3,t.reInit(),e()):$(window).width()<760?(t.params.slidesPerView=1,t.params.noSwiping=!1,t.reInit()):(t.params.slidesPerView=5,t.reInit(),e())});var s=$(".fading-slider .swiper-slide"),i=t.activeIndex;s.eq(i).addClass("slide-disabled");var n=t.activeIndex+t.params.slidesPerView-1;s.eq(n).addClass("slide-disabled")}function sliderSidebar(){var e=$(".slider-siderbar").swiper({slidesPerView:1,speed:600,autoplay:4e3,autoplayDisableOnInteraction:!1,loop:!0,onSlideChangeStart:function(){i=e.activeLoopIndex+1,a.text(i),o.text(t.eq(i-1).attr("data-heading")),r.text(t.eq(i-1).attr("data-text"))}});$(".slider-siderbar-control .prev-arrow").on("click",function(t){t.preventDefault(),e.swipePrev()}),$(".slider-siderbar-control .next-arrow").on("click",function(t){t.preventDefault(),e.swipeNext()});var t=$(".slider-siderbar .swiper-slide"),a=$(".current-slide"),s=$(".all-slide"),i=e.activeLoopIndex+1,n=e.slides.length-2;a.text(i),s.text(n);var o=$(".slide-info__heading"),r=$(".slide-info__text");o.text(t.eq(i-1).attr("data-heading")),r.text(t.eq(i-1).attr("data-text"))}function sliderSidebarFull(){var e=$(".slider-siderbar").swiper({slidesPerView:1,speed:600,autoplay:4e3,autoplayDisableOnInteraction:!1,loop:!0,onSlideChangeStart:function(){i=e.activeLoopIndex+1,a.text(i),o.html(t.eq(i-1).attr("data-icon")),r.text(t.eq(i-1).attr("data-heading")),l.text(t.eq(i-1).attr("data-text"))}});$(".slider-siderbar-control .prev-arrow").on("click",function(t){t.preventDefault(),e.swipePrev()}),$(".slider-siderbar-control .next-arrow").on("click",function(t){t.preventDefault(),e.swipeNext()});var t=$(".slider-siderbar .swiper-slide"),a=$(".current-slide"),s=$(".all-slide"),i=e.activeLoopIndex+1,n=e.slides.length-2;a.text(i),s.text(n);var o=$(".slide-info__icon"),r=$(".slide-info__heading"),l=$(".slide-info__text");o.html(t.eq(i-1).attr("data-icon")),r.text(t.eq(i-1).attr("data-heading")),l.text(t.eq(i-1).attr("data-text"))}function productSlider(){$(".product-slider").swiper({slidesPerView:1,paginationClickable:!0,pagination:".product-slider-pagination"})}function flickr(){function e(){t&&clearTimeout(t),t=setTimeout(function(){$("#cboxOverlay").is(":visible")&&$.colorbox.load(!0)},300)}$("#flickr").jflickrfeed({limit:15,qstrings:{id:"52617155@N08"},itemTemplate:'
  • {{title}}
  • '},function(){$("#flickr a").colorbox({"data-rel":"colorbox"})}),$.colorbox.settings.maxWidth="95%",$.colorbox.settings.maxHeight="95%";var t;$(window).resize(e),window.addEventListener("orientationchange",e,!1)}function isotopeFilters(){function e(){var e=$(window).width(),t=1;return e>1200?t=4:e>900?t=3:e>600?t=2:e>200&&(t=1),t}function t(){var t=$(window).width(),a=e(),i=Math.floor(t/a);s.find(".item").each(function(){$(this).css({width:i+"px",height:i+"px"})})}function a(){t(),s.isotope("reLayout")}var s=$("#blog-random");s.isotope({itemSelector:".post",masonry:{isFitWidth:!0}}),$("#filters li").click(function(){var e=$("#filters li");e.removeClass("tags__link--active"),$(this).addClass("tags__link--active");var t=$(this).attr("data-filter");return s.isotope({filter:t}),a(),!1}),s.imagesLoaded(function(){a()}),$(window).bind("resize",function(){a()})}function isotopeGallery(){function e(){var e=$(window).width(),t=1;return e>2100?t=9:e>1200?t=7:e>900?t=5:e>600?t=3:e>300&&(t=2),t}function t(){var t=$(window).width(),a=e(),i=Math.floor(t/a);s.find(".gallery-item").each(function(){$(this).css({width:i+"px"})})}function a(){t(),s.isotope("reLayout")}var s=$(".gallery-full");s.isotope({itemSelector:".gallery-item",masonry:{isFitWidth:!0}}),$("#filters li").click(function(){var e=$("#filters li");e.removeClass("tags__link--active"),$(this).addClass("tags__link--active");var t=$(this).attr("data-filter");return s.isotope({filter:t}),a(),!1}),s.imagesLoaded(function(){a()}),$(window).bind("resize",function(){a()})}function checkNext(){$(".checkout-next").click(function(e){e.preventDefault();var t=$(this).attr("data-page");$("."+t).find(".collapsed").trigger("click")})}function selectBox(){$(".select-box").selectpicker()}function initMap(){var e={scaleControl:!0,center:new google.maps.LatLng(40.705002,-73.98345),zoom:9,zoomControl:!0,panControl:!1,mapTypeControl:!1,streetViewControl:!1,scrollwheel:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},t=new google.maps.MarkerImage("http://atech.designzway.com/demo/images/components/marker.png",null,null,null,new google.maps.Size(57,64)),a=new google.maps.Map(document.getElementById("map"),e);new google.maps.Marker({map:a,position:a.getCenter(),icon:t})}function initMapVintage(){var e={scaleControl:!0,center:new google.maps.LatLng(40.705002,-73.98345),zoom:8,zoomControl:!0,panControl:!1,mapTypeControl:!1,streetViewControl:!1,scrollwheel:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},t=new google.maps.MarkerImage("http://atech.designzway.com/demo/images/components/marker.png",null,null,null,new google.maps.Size(57,64)),a=new google.maps.Map(document.getElementById("map"),e),s=(new google.maps.Marker({map:a,position:a.getCenter(),icon:t}),[{featureType:"road.highway",elementType:"geometry",stylers:[{saturation:-100},{lightness:-8},{gamma:1.18}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{saturation:-100},{gamma:1},{lightness:-24}]},{featureType:"poi",elementType:"geometry",stylers:[{saturation:-100}]},{featureType:"administrative",stylers:[{saturation:-100}]},{featureType:"transit",stylers:[{saturation:-100}]},{featureType:"water",elementType:"geometry.fill",stylers:[{saturation:-100}]},{featureType:"road",stylers:[{saturation:-100}]},{featureType:"administrative",stylers:[{saturation:-100}]},{featureType:"landscape",stylers:[{saturation:-100}]},{featureType:"poi",stylers:[{saturation:-100}]},{}]),i={},n=new google.maps.StyledMapType(s,i);a.mapTypes.set("usroadatlas",n),a.setMapTypeId("usroadatlas")}function initMapLocation(){var e={scaleControl:!0,center:new google.maps.LatLng(51.546109,-.146007),zoom:13,zoomControl:!0,panControl:!1,mapTypeControl:!1,streetViewControl:!1,scrollwheel:!1,mapTypeId:google.maps.MapTypeId.ROADMAP},t=new google.maps.MarkerImage("http://atech.designzway.com/demo/images/components/marker.png",null,null,null,new google.maps.Size(57,64)),a=new google.maps.Map(document.getElementById("map"),e),s=(new google.maps.Marker({map:a,position:a.getCenter(),icon:t}),[{stylers:[{saturation:-100},{gamma:3}]},{elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"water",stylers:[{visibility:"on"},{saturation:0},{gamma:2},{hue:"#aaaaaa"}]},{featureType:"administrative.neighborhood",elementType:"labels.text.fill",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"transit.station",elementType:"labels.icon",stylers:[{visibility:"off"}]}]),i=new google.maps.StyledMapType(s,{name:"Cusmome style"});a.mapTypes.set("map_styles",i),a.setMapTypeId("map_styles")}function galleryPopup(){$(".gallery-wrapper").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.'}})}function shopPopup(){$(".product-wrapper").magnificPopup({delegate:".product__control-right",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",image:{tError:'The image #%curr% could not be loaded.'}}),$(".product__control-right").click(function(){$(this).blur()})}function galletyThumbs(){$("#thumbs").galleriffic({imageContainerSel:"#slideshow"})}function numberStart(){$("#number-start").one("inview",function(e,t){1==t&&init_statsCounter(2e3)})}function progressStart(){$("#progress-start").one("inview",function(e,t){1==t&&init_progressBar(2500)})}function rocketsStart(){$(".rocket-container").one("inview",function(e,t){1==t&&($(".rocket-top").addClass("rocket-ftop"),$(".small-left").addClass("rocket-fleft"),$(".small-right").addClass("rocket-fright"))})}function rangeSlider(){$(".range-slider").noUiSlider({start:[109,385],range:{min:[0],max:[1e3]},serialization:{lower:[$.Link({target:$("#range-min"),format:{decimals:0}})],upper:[$.Link({target:$("#range-max"),format:{decimals:0}})]}})}function ratyDefault(){$(".score").raty({score:5,size:120,starOff:"http://thietkethicongposm.com/wp-content/themes/posm/external/raty/images/star-off.svg",starOn:"http://thietkethicongposm.com/wp-content/themes/posm/external/raty/images/star-on.svg"})}function ratyDisabled(){$(".comment-score").raty({readOnly:!0,score:5,size:120,starOff:"http://thietkethicongposm.com/wp-content/themes/posm/external/raty/images/star-off.svg",starOn:"http://thietkethicongposm.com/wp-content/themes/posm/external/raty/images/star-on.svg"})}function sequence(e){var t=$(e+" .sequence__item");t.click(function(e){e.preventDefault(),t.removeClass("sequence__item--active"),$(this).addClass("sequence__item--active");var a=$(".sequence--clickable .sequence__separator"),s='',i='',n='';a.html(s),$(this).prev(".sequence__separator").html(i),$(this).next(".sequence__separator").html(n)})}function sequenceExp(){var e=$(".sequence__item");e.click(function(t){t.preventDefault(),e.removeClass("sequence__item--active"),$(this).addClass("sequence__item--active");var a=$(".sequence--clickable .sequence__separator"),s=$(this).attr("data-connect"),i=$(".sequence__text");i.hide(0),$("."+s).show();var n='',o='',r='';a.html(n),$(this).prev(".sequence__separator").html(o),$(this).next(".sequence__separator").html(r)})}function qNumber(){$(".qtyplus").click(function(e){e.preventDefault();var t=$(this).attr("data-field"),a=parseInt($("input[name="+t+"]").val());isNaN(a)?$("input[name="+t+"]").val(0):$("input[name="+t+"]").val(a+1)}),$(".qtyminus").click(function(e){e.preventDefault();var t=$(this).attr("data-field"),a=parseInt($("input[name="+t+"]").val());!isNaN(a)&&a>0?$("input[name="+t+"]").val(a-1):$("input[name="+t+"]").val(0)})}function scrollControls(){$(".tags__item--comment").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$("#comment-start").offset().top-100},900,"swing")}),$(".tags__item--user").click(function(e){e.preventDefault(),$("html, body").stop().animate({scrollTop:$("#user-post-start").offset().top-100},900,"swing")})}function smoothLink(){$(".scroll-link").bind("click.smoothscroll",function(e){e.preventDefault();var t=this.hash,a=$(t);void 0!=a.offset()&&$("html, body").stop().animate({scrollTop:a.offset().top-110},900,"swing",function(){$("body").hasClass("auto-close-menu")&&$(".menu-open").length>0&&$("#menuToggle, #menuToggleLeft").click()})}),Modernizr.touch?$(".scroll-link").on("touchstart",function(){$("#review").trigger("click")}):$(".scroll-link").click(function(){$("#review").trigger("click")})}function smoothScrollInit(){Modernizr.touch?$('a[href^="#"]').bind("touchstart.smoothscroll",function(e){e.preventDefault();var t=this.hash,a=$(t);void 0!=a.offset()&&$("html, body").stop().animate({scrollTop:a.offset().top-110},900,"swing",function(){$("body").hasClass("auto-close-menu")&&$(".menu-open").length>0&&$("#menuToggle, #menuToggleLeft").click()})}):$('a[href^="#"]').bind("click.smoothscroll",function(e){e.preventDefault();var t=this.hash,a=$(t);void 0!=a.offset()&&$("html, body").stop().animate({scrollTop:a.offset().top-110},900,"swing",function(){$("body").hasClass("auto-close-menu")&&$(".menu-open").length>0&&$("#menuToggle, #menuToggleLeft").click()})})}function wijimoCharts(){var e=$("#wijlinechart"),t=$("#wijbarchart"),a=$("#wijpiechart"),s=$("#wijlinechart-large");e.wijlinechart({showChartLabels:!1,hint:{enable:!1},axis:{y:{labels:{style:{fill:"#737c85"}},gridMajor:{visible:!0,style:{stroke:"#dadede","stroke-width":"1"}},max:100,min:0,annoMethod:"values"},x:{labels:{style:{fill:"#737c85"}}}},legend:{visible:!1},seriesList:[{data:{x:[2,4,6,8,10,12],y:[60,65,90,55,39,44]},markers:{visible:!0,type:"circle",style:{stroke:"#f3f7f7","stroke-width":"1"}}},{data:{x:[2,4,6,8,10,12],y:[52,44,68,80,99,70]},markers:{visible:!0,type:"circle",style:{stroke:"#f3f7f7","stroke-width":"1"}}}],seriesStyles:[{stroke:"#fe8f8c","stroke-width":1,opacity:1},{stroke:"#85d6de","stroke-width":1,opacity:1}]}),t.wijbarchart({horizontal:!1,autoResize:"true",shadow:!1,stacked:!0,hint:{enable:!1},axis:{y:{labels:{style:{fill:"#737c85"}},gridMajor:{visible:!1},max:100,min:0},x:{labels:{style:{fill:"#34495e"},gridMajor:{isible:!1}}}},legend:{visible:!1},seriesList:[{label:"tests",legendEntry:!0,data:{x:["S","M","T","W","T","F","S"],y:[42,30,65,60,50,66,80]}},{label:"Max",data:{x:["S","M","T","W","T","F","S"],y:[100,100,100,100,100,100,100]}}],seriesStyles:[{fill:"#85d6de",stroke:"#85d6de",opacity:1,rx:10,ry:10},{fill:"#e3edee",stroke:"#e3edee",opacity:1}]}),a.wijpiechart({radius:72,animation:{enabled:!1},legend:{compass:"north",orientation:"horizontal",textMargin:{left:0,right:0,top:140,bottom:0},textStyle:{fill:"#737c85","font-size":11}},hint:{enable:!1},labels:{style:{"font-size":16,"font-family":"Varela Round",fill:"#85d6de"},formatter:function(){return Globalize.format(this.value/this.total,"p0")},connectorStyle:{"stroke-width":0},position:"outside",offset:10},seriesList:[{label:"$, Dollar",data:56,offset:0},{label:"€, Euro",data:25,offset:0},{label:"£, Pound",data:19,offset:0}],seriesStyles:[{fill:"#85d6de",stroke:"#fff","stroke-width":1},{fill:"#7bc7d1",stroke:"#fff","stroke-width":1},{fill:"#68aab8",stroke:"#fff","stroke-width":1}]}),$(".dial").knob(),s.wijlinechart({showChartLabels:!1,type:"area",legend:{visible:!1},hint:{enable:!1},axis:{y:{labels:{style:{fill:"#737c85",x:30}},gridMajor:{visible:!0,style:{stroke:"#dadede","stroke-width":"1"}},max:52e3,min:1e4},x:{labels:{style:{fill:"#737c85",y:150}}}},seriesList:[{fitType:"spline",data:{x:["05-01","05-02","05-03","05-04","05-05","05-06","05-07","05-08","05-09","05-10","05-11","05-12","05-13","05-14","05-15","05-16","05-17","05-18","05-19","05-20","05-21","05-22","05-23"],y:[11e3,35e3,12e3,28e3,12e3,4e4,12500,46e3,23e3,31e3,15e3,19e3,15e3,18e3,31e3,17e3,24e3,19500,30500,16e3,14e3,12e3,1e4]},markers:{visible:!1}},{fitType:"spline",data:{x:["05-01","05-02","05-03","05-04","05-05","05-06","05-07","05-08","05-09","05-10","05-11","05-12","05-13","05-14","05-15","05-16","05-17","05-18","05-19","05-20","05-21","05-22","05-23"],y:[10500,18e3,12e3,3e4,40500,29e3,18500,25e3,15e3,51e3,16e3,23e3,11e3,33e3,11500,17e3,22e3,17e3,43e3,13e3,12e3,11e3,1e4]},markers:{visible:!1}}],seriesStyles:[{fill:"#85d6de",stroke:"#85d6de","stroke-width":5,opacity:1},{fill:"#fed37f",stroke:"#fed37f","stroke-width":5,opacity:1}]}),$(window).resize(function(){e.wijlinechart("redraw"),t.wijbarchart("redraw"),a.wijpiechart("redraw"),s.wijlinechart("redraw")})}function tooltips(){$(".tooltip-link").tooltip()}function preloader(){$(window).load(function(){$(".animationload").delay(600).fadeOut("slow")})}function videoLoop(e){if(0==$(e).length)return 0;var t=document.getElementById(e);"boolean"==typeof t.loop?t.loop=!0:t.on("ended",function(){this.currentTime=0,this.play()},!1),t.play()}Modernizr.load({test:Modernizr.touch,yep:["css/touch.css?v=1"],complete:function(){if(Modernizr.touch)$(".z-nav__list > .z-nav__item:has(.z-nav__list-secondary) > .z-nav__link").click(function(e){$(window).width()>769&&e.preventDefault()}),$(".animationload").delay(1e3).fadeOut("slow");else{var e=$(".header-fixed");$(".waypoint").each(function(){var t=$(this),a=t.data("animateDown"),s=t.data("animateUp");t.waypoint(function(t){"down"===t&&a?e.attr("class","header-fixed "+a):"up"===t&&s&&e.attr("class","header-fixed "+s)},{offset:-250})})}}});var test=!1;"document"in self&&!("classList"in document.createElement("_"))&&(test=!0),Modernizr.load({test:test,yep:["http://thietkethicongposm.com/wp-content/themes/posm/external/classList/classList.js"],nope:[]}),Modernizr.input.placeholder||($("[placeholder]").focus(function(){var e=$(this);e.val()==e.attr("placeholder")&&(e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=$(this);""!=e.val()&&e.val()!=e.attr("placeholder")||(e.addClass("placeholder"),e.val(e.attr("placeholder")))}).blur(),$("[placeholder]").parents("form").submit(function(){$(this).find("[placeholder]").each(function(){var e=$(this);e.val()==e.attr("placeholder")&&e.val("")})})),jQuery.fn.topLink=function(e){return e=jQuery.extend({min:1,fadeSpeed:200},e),this.each(function(){var t=$(this);$(window).scroll(function(){$(window).scrollTop()>=e.min?(t.addClass("top-scroll-show"),t.removeClass("top-scroll-hide")):(t.addClass("top-scroll-hide"),t.removeClass("top-scroll-show"))})})},$(document).ready(function(){return $(".z-nav__list").mobileMenu({triggerMenu:".z-nav__toggle",subMenuTrigger:".z-nav__toggle-sub",animationSpeed:500}),$(".z-nav__toggle").on("mousedown touchstart",function(){$(".z-nav__toggle").toggleClass("open-nav");var e=$(".z-nav__list"),t=$(".cart__list"),a=$(".cart__toggle");e.hasClass("open-nav")?(e.removeClass("open-nav close-nav"),e.addClass("close-nav")):(e.removeClass("open-nav close-nav"),e.addClass("open-nav"),t.removeClass("open-nav close-nav"),t.addClass("close-nav"),a.removeClass("open-nav close-nav"),a.addClass("close-nav"))}),$(".top-scroll").topLink({min:200,fadeSpeed:500}),Modernizr.touch?$(".top-scroll").on("touchstart",function(e){e.preventDefault(),$.scrollTo(0,700)}):$(".top-scroll").click(function(e){e.preventDefault(),$.scrollTo(0,700)}),0==$(".mega-menu").length?0:void $(".mega-menu").parent().addClass("skip-element")}),$(window).resize(function(){window.innerWidth>768&&$(".z-nav__list").removeClass("close-nav")});